﻿<UserControl x:Class="TLM.Wizard.Pages.ConversionChoicePage"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006">
    <UserControl.Resources>
        <BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter"/>
        <Style TargetType="Button">
            <Setter Property="Width" Value="80"/>
            <Setter Property="Margin" Value="20,0,0,0"/>
        </Style>
        <Style x:Key="PathPicker" TargetType="StackPanel">
            <Setter Property="Margin" Value="0,5,0,0"></Setter>
        </Style>
        <Style x:Key="VisibilityCheckbox" TargetType="CheckBox">
            <Setter Property="Margin" Value="0,20,0,0"></Setter>
        </Style>
        <Style TargetType="TextBox">
            <Setter Property="Width" Value="200px"/>
        </Style>
    </UserControl.Resources>
    <Grid>        
        <StackPanel Orientation="Vertical">
            <TextBlock TextWrapping="Wrap">!! Text for testing purposes only !! <LineBreak /> Here you can select which conversion you would like to run.</TextBlock>
            <CheckBox Style="{StaticResource VisibilityCheckbox}" Content="Playlist" IsChecked="{Binding Path=IsConvertingToPlaylist }"></CheckBox>
            <StackPanel Style="{StaticResource PathPicker}" Orientation="Horizontal" Visibility="{Binding Path=IsConvertingToPlaylist, Converter={StaticResource BooleanToVisibilityConverter}}">
                <TextBox Text="{Binding Path=PlaylistConversionResultDestinationPath}"></TextBox>
                <Button Command="{Binding PickPlaylistPathCommand}">Locatie</Button>
            </StackPanel>
            <CheckBox Style="{StaticResource VisibilityCheckbox}" Content="Test category" IsChecked="{Binding Path=IsConvertingToTestCategory }"></CheckBox>
            <StackPanel Style="{StaticResource PathPicker}" Orientation="Horizontal" Visibility="{Binding Path=IsConvertingToTestCategory, Converter={StaticResource BooleanToVisibilityConverter}}">
                <TextBox Text="{Binding Path=TestCategoryConversionResultDestinationPath}"></TextBox>
                <Button Command="{Binding PickTestCategoryPathCommand}">Locatie</Button>
            </StackPanel>
        </StackPanel>
    </Grid>
</UserControl>
